﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using LView.CMS.ViewModels;

namespace LView.CMS.IServices
{
    public interface ITaskService
    {
        /// <summary>
        /// 根据查询条件获取数据
        /// </summary>
        /// <param name="model">查询实体</param>
        /// <returns></returns>
        //Task<TableDataModel> LoadDataAsync(SubjectRequestModel model);
        Task<TableDataModel> LoadDataAsync(PageModel model);

        Task<BaseResult> AddOrModifyAsync(TaskAddOrModifyModel model);

        Task<BaseResult> DeleteIdsAsync(string[] Ids);

        Task<BaseResult> SendTaskAsync(string taskId, string taskName, string assignUser, string roleId);

        Task TaskDataForMongodbTest();
    }
}
